package cn.hejiang.mamis.core.service;

import javax.servlet.http.HttpServletRequest;

import cn.hejiang.mamis.core.entity.PlatSys;
import cn.hejiang.mamis.core.entity.PlatUser;
import cn.hejiang.mamis.core.entity.SessionDetails;

public interface ContextService {
	public SessionDetails getSessionFromRequest(HttpServletRequest request);
	public SessionDetails getSession(HttpServletRequest request);
	public SessionDetails newSession(HttpServletRequest request, PlatUser user);
	public void deleteSession(HttpServletRequest request);

	PlatSys getSystemFromRequest(HttpServletRequest request);
	PlatSys setSystemByCode(String sysCode);
	PlatSys setSystemById(String sysId);
	PlatSys getSystem();
}
